#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int main() {
    int n;
    int i = 0, j = 0;
    scanf("%d", &n);
    while (n-- > 0)
    {
        if (n % 2 == 0)
            i++;
        else
            j++;
    }
    printf("%d %d", i, j);
    return 0;
}